const API_BASE = 'https://m.imegou.cn/index.php/Applet';
// const API_V4 = API_BASE + '/4';
// const API_V3 = API_BASE + '/3';

const API_INDEX = API_BASE + '/Index/index'; 
const API_Class = API_BASE + '/Index/classify'; 
const API_SHOW = API_BASE + '/Show/detail';
const API_Sc = API_BASE + '/Show/collection';
const API_Qx = API_BASE + '/Show/cancel';
const API_Confirmodetails = API_BASE + '/Show/detailsconfirm';
const API_Login = API_BASE + '/Login/login';
const API_Dx = API_BASE + '/Login/dxyz';
const API_Reg = API_BASE + '/Login/regist';
const API_Addflow = API_BASE + '/Cart/addflow';
const API_Flow = API_BASE + '/Cart/flow';
const API_Change = API_BASE + '/Cart/change';
const API_Changenums = API_BASE + '/Cart/changenums';
const API_Delcart = API_BASE + '/Cart/delcart';
const API_orderCart = API_BASE + '/cart/orderconfirm';
const API_Center = API_BASE + '/Center/index';
const API_Collect = API_BASE + '/Center/collect';
const API_Collectdel = API_BASE + '/Center/collectdel';
const API_Addresslist = API_BASE + '/Address/addresslist';
const API_Addradd = API_BASE + '/Address/addradd';
const API_Addrupdate = API_BASE + '/Address/addrupdate';
const API_Addvip = API_BASE + '/Center/addvip';
const API_Set = API_BASE + '/Center/listset';
const API_Setupdate = API_BASE + '/Center/updateset';
const API_orderlist = API_BASE + '/order/orderlist';
const API_Remind = API_BASE + '/order/remind';
const API_Logistics = API_BASE + '/order/logistics';
const API_Delorder = API_BASE + '/order/delorder'; 
const API_Orderconfirm = API_BASE + '/order/confirm'; 
const API_Orderdetail = API_BASE + '/order/detail'; 
const API_Voucher = API_BASE + '/voucher/voucher'; 
const API_Getvoucher = API_BASE + '/voucher/getvoucher'; 
const API_Receive = API_BASE + '/voucher/receive'; 
const API_Fract = API_BASE + '/fract/fract'; 
const API_Fractshow = API_BASE + '/fract/details'; 
const API_Fractdetail = API_BASE + '/fract/detail'; 
const API_Fractrecord = API_BASE + '/fract/record';
const API_Fractfinish = API_BASE + '/fract/finish';
const API_Checkscore = API_BASE + '/fract/checkscore';
const API_Fractconfirm = API_BASE + '/fract/confirm';
const API_Addrmoren = API_BASE + '/address/moren';
const API_Addrdel = API_BASE + '/address/addrdel';
const API_Wxpay = API_BASE + '/pay/pay';
const API_Useing = API_BASE + '/voucher/useing';
const API_Vipagain = API_BASE + '/center/vipagain';
const API_Qrcode = API_BASE + '/center/qrcode'; 
const API_Addorder = API_BASE + '/order/addorder';
const API_Refund = API_BASE + '/order/refund';
const API_Create = API_BASE + '/fract/create';
const API_Evalist = API_BASE + '/evaluate/evaluatelist';
const API_Evaadd = API_BASE + '/evaluate/evaluateadd';
const API_Doadd = API_BASE + '/evaluate/subsave';
const API_Detailnotice = API_BASE + '/index/noticedetail';

/**
 * 获取首页信息
 * @returns {string}
 */
function getIndexList() {
  return API_INDEX;
}
/**
 * 获取分类页信息
 * @returns {string}
 */
function postclassifyList() {
  return API_Class;
}
/**
 * 获取详情页信息
 * @returns {string}
 */
function getDetailShow(){
  return API_SHOW ;
}
/**
 * 获取收藏信息
 * @returns {string}
 */
function postDetailSc() {
  return API_Sc ;
}
/**
 * 取消收藏
 * @returns {string}
 */
function postDetailQx() {
  return API_Qx;
}
/**
 * 加入购物车
 * @returns {string}
 */
function postFlowadd() {
  return API_Addflow;
}
/**
 * 登录
 * @returns {string}
 */
function postImLogin() {
  return API_Login;
}
/**
 * 短信验证码
 * @returns {string}
 */
function postyzDx() {
  return API_Dx;
}
/**
 * 注册
 * @returns {string}
 */
function postregDo() {
  return API_Reg;
}
/**
 * 购物车列表
 * @returns {string}
 */
function postflowList() {
  return API_Flow;
}
/**
 * 改变状态
 * @returns {string}
 */
function postcheckChange() {
  return API_Change;
}
/**
 * 改变数量
 * @returns {string}
 */
function postnumsChange() {
  return API_Changenums;
}
/**
 * 删除购物车
 * @returns {string}
 */
function postcartDel() {
  return API_Delcart;
}

/**
 * 单品订单确认
 * @returns {string}
 */
function postconfirmDetalis() {
  return API_Confirmodetails;
}
/**
 * 个人中心
 * @returns {string}
 */
function postindexCenter() {
  return API_Center;
}
/**
 * 我的收藏
 * @returns {string}
 */
function postlistCollect() {
  return API_Collect;
}
/**
 * 删除收藏
 * @returns {string}
 */
function postdelCollet() {
  return API_Collectdel;
}
/**
 * 地址列表
 * @returns {string}
 */
function postaddressList() {
  return API_Addresslist;
}
/**
 * 地址添加
 * @returns {string}
 */
function postaddrAdd() {
  return API_Addradd;
}
/**
 * 地址修改
 * @returns {string}
 */
function postupdateAddr() {
  return API_Addrupdate;
}
/**
 * 站长申请
 * @returns {string}
 */
function postaddVip() {
  return API_Addvip;
}
/**
 * 设置
 * @returns {string}
 */
function postsetList() {
  return API_Set;
}
/**
 * 修改设置
 * @returns {string}
 */
function postsetUpdate() {
  return API_Setupdate;
}
/**
 * 修改设置
 * @returns {string}
 */
function postlistOrder() {
  return API_orderlist;
}
/**
 * 发货提醒
 * @returns {string}
 */
function postremindTo() {
  return API_Remind;
} 
/**
 * 查看物流
 * @returns {string}
 */
function posttoLogistics() {
  return API_Logistics;
} 
/**
 * 删除订单
 * @returns {string}
 */
function postorderDel() {
  return API_Delorder;
} 
/**
 * 订单确认
 * @returns {string}
 */
function postconfirmOrder() {
  return API_Orderconfirm;
} 
/**
 * 订单详情
 * @returns {string}
 */
function postdetailOrder() {
  return API_Orderdetail;
} 
/**
 * 优惠券
 * @returns {string}
 */
function postvoucherTo() {
  return API_Voucher;
} 
/**
 * 优惠券领取列表
 * @returns {string}
 */
function postvoucherGet() {
  return API_Getvoucher;
} 
/**
 * 优惠券领取
 * @returns {string}
 */
function postreceiveTo() {
  return API_Receive;
} 

/**
 * 积分兑换列表
 * @returns {string}
 */
function postfractTo() {
  return API_Fract;
} 
/**
 * 积分兑换详情
 * @returns {string}
 */
function postshowFract() {
  return API_Fractshow;
} 
/**
 * 积分明细
 * @returns {string}
 */
function postdetailFract() {
  return API_Fractdetail;
} 
/**
 * 兑换记录
 * @returns {string}
 */
function postrecordFract() {
  return API_Fractrecord;
} 
/**
 * 兑换记录详情
 * @returns {string}
 */
function postfinishFract() {
  return API_Fractfinish;
} 
/**
 * 积分检测
 * @returns {string}
 */
function postscoreCheck() {
  return API_Checkscore;
} 
/**
 * 积分检测
 * @returns {string}
 */
function postconfirmFract() {
  return API_Fractconfirm;
} 
/**
 * 地址变更
 * @returns {string}
 */
function postmorenAddr() {
  return API_Addrmoren;
} 
/**
 * 地址删除
 * @returns {string}
 */
function postdelAddr() {
  return API_Addrdel;
}
/**
 * 微信支付
 * @returns {string}
 */
function postwxPay() {
  return API_Wxpay;
}
/**
 * 微信支付
 * @returns {string}
 */
function postorderCart() {
  return API_orderCart;
}
/**
 * 优惠券使用
 * @returns {string}
 */
function postvoucherUse() {
  return API_Useing;
}
/**
 * 重新认证
 * @returns {string}
 */
function postagainVip() {
  return API_Vipagain;
}
/**
 *二维码
 * @returns {string}
 */
function postqrcodeVip() {
  return API_Qrcode;
}
/**
 *生成订单
 * @returns {string}
 */
function postorderAdd() {
  return API_Addorder;
}
/**
 *退款
 * @returns {string}
 */
function postrefundOrder() {
  return API_Refund;
}
/**
 *积分订单生成
 * @returns {string}
 */
function postcreateFract() {
  return API_Create;
}
/**
 *评价
 * @returns {string}
 */
function postlistEva() {
  return API_Evalist;
}
/**
 *发表评价
 * @returns {string}
 */
function postaddEva() {
  return API_Evaadd;
}
/**
 *发表评价
 * @returns {string}
 */
function postaddDo() {
  return API_Doadd;
}
/**
 *公告详情
 * @returns {string}
 */
function postdetailnotice() {
  return API_Detailnotice;
}

module.exports = {
  getIndexList: getIndexList,
  postclassifyList: postclassifyList,
  getDetailShow: getDetailShow,
  postDetailSc: postDetailSc,
  postDetailQx:postDetailQx,
  postFlowadd: postFlowadd,
  postImLogin:postImLogin,
  postyzDx: postyzDx,
  postregDo: postregDo,
  postflowList: postflowList,
  postcheckChange: postcheckChange,
  postnumsChange:postnumsChange,
  postcartDel: postcartDel,
  postorderCart: postorderCart,
  postconfirmDetalis: postconfirmDetalis,
  postindexCenter: postindexCenter,
  postlistCollect: postlistCollect,
  postdelCollet: postdelCollet,
  postaddressList: postaddressList,
  postaddrAdd: postaddrAdd,
  postupdateAddr: postupdateAddr,
  postaddVip: postaddVip,
  postsetList: postsetList,
  postsetUpdate: postsetUpdate,
  postlistOrder: postlistOrder,
  postremindTo: postremindTo,
  posttoLogistics: posttoLogistics,
  postorderDel: postorderDel,
  postconfirmOrder: postconfirmOrder,
  postdetailOrder: postdetailOrder,
  postvoucherTo: postvoucherTo,
  postvoucherGet: postvoucherGet,
  postreceiveTo: postreceiveTo,
  postfractTo: postfractTo,
  postshowFract: postshowFract,
  postdetailFract: postdetailFract,
  postrecordFract: postrecordFract,
  postfinishFract: postfinishFract,
  postscoreCheck: postscoreCheck,
  postconfirmFract: postconfirmFract,
  postmorenAddr: postmorenAddr,
  postdelAddr: postdelAddr,
  postwxPay: postwxPay,
  postvoucherUse: postvoucherUse,
  postagainVip: postagainVip,
  postqrcodeVip: postqrcodeVip,
  postorderAdd: postorderAdd,
  postrefundOrder: postrefundOrder,
  postcreateFract: postcreateFract,
  postlistEva: postlistEva,
  postaddEva: postaddEva,
  postaddDo: postaddDo,
  postdetailnotice: postdetailnotice
};
